//*************************************************
//Program #4       SCA.h
//*************************************************
//Names: Stephen Durfrey,  Andrew Brock
//Due: April 23, 2010
//Operating Systems
//Related Files:  SCA.cpp
// Second-Chance PGA: FIFO-like algorithm with a second chance
//  to "survive" in memory.

#ifndef SCA_H
#define SCA_H

#include "Page_Replacement_Algorithm.h"

class SCA : Page_Replacement_Algorithm
{
	private:
		void removePage();
		vector<int>::iterator ref_page;
		vector<int>::iterator ref_secChan;
		vector<int> secondChance;
		vector<int>::iterator checkFrame(vector<int>::iterator check);

	public:
		SCA();
		void init(int frames, vector<int> ref_str);
		void run();
};

#endif

